package com.spider.admin.service.account;

import com.spider.admin.exception.SpiderException;
import com.spider.admin.http.entity.PageResult;
import com.spider.admin.store.primary.model.AccountInfo;
import com.spider.admin.store.primary.model.AccountPermissions;

import java.util.List;

public interface AccountService {
    AccountInfo queryAccountByName(String accountName)throws SpiderException;
    PageResult<AccountInfo> queryAccounts(Integer page, Integer pageSize, String accountName, String realName, Integer accountType, String accountStatus)throws SpiderException;
    int saveAccount(AccountInfo accountInfo)throws SpiderException;
    int updateAccount(AccountInfo accountInfo,String accountName)throws SpiderException;
    int activeAccount(String accountName)throws SpiderException;
    int archiveAccount(String accountName)throws SpiderException;
    AccountInfo login(String accountName,String password)throws SpiderException;
    List<AccountPermissions> getAllPerms()throws SpiderException;
    String updateAccountPwd(String accountName,String password)throws SpiderException;
    int updateAccountByOwner(AccountInfo accountInfo,String accountName)throws SpiderException;
}

